# -*- coding: utf-8 -*-
"""
Integration with other services/Tornado Wsgi/test01.py
"""
from flask import Flask
import tornado
import tornado.httpserver
import tornado.wsgi
import asyncio

app = Flask(__name__)


@app.route('/')
def hello_world():
    return 'Hello World'


async def main():
    container = tornado.wsgi.WSGIContainer(wsgi_application=app)
    http_server = tornado.httpserver.HTTPServer(container)
    http_server.listen(8888)
    await asyncio.Event().wait()


if __name__ == '__main__':
    asyncio.run(main())
